package cn.z2huo.knowledge.collection.map.linkedhashmap;

import java.util.HashMap;
import java.util.LinkedHashMap;

class Test {

    public static void main(String[] args) {
        LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap<>();
        linkedHashMap.put("name", "zyz");
        linkedHashMap.put("age", "18");
        linkedHashMap.put("class", "42");
        linkedHashMap.put("sex", "man");
        System.out.println(linkedHashMap);

        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("name", "zyz");
        hashMap.put("age", "18");
        hashMap.put("class", "42");
        hashMap.put("sex", "man");
        System.out.println(hashMap);
    }

}
